<link href="../addons/jy_nongren/imgs/index.css?v=20230106" rel="stylesheet">
<style type="text/css">
@-webkit-keyframes grace-fade-data-v-680ac6ab {
    0% {
        opacity: .6;
    }

    25% {
        opacity: 1;
    }

    50% {
        opacity: .6;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: .6;
    }
}

@keyframes grace-fade-data-v-680ac6ab {
    0% {
        opacity: .6;
    }

    25% {
        opacity: 1;
    }

    50% {
        opacity: .6;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: .6;
    }
}

.grace-full-loading.data-v-680ac6ab {
    width: 100%;
    height: 100%;
    background: #fff;
    position: fixed;
    z-index: 99;
    left: 0;
    top: 0;
    bottom: 0;
}

.grace-full-loading .content.data-v-680ac6ab {
    width: 300rpx;
    height: auto;
    position: absolute;
    z-index: 100;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    animation: grace-fade-data-v-680ac6ab 3.5s infinite linear;
    opacity: .6;
    padding: 10rpx;
}

.grace-full-loading .img.data-v-680ac6ab {
    text-align: center;
    font-size: 0;
}

.grace-full-loading .img img.data-v-680ac6ab {
    width: 138rpx;
    height: 138rpx;
    border-radius: 100%;
}

.grace-full-loading .text.data-v-680ac6ab {
    line-height: 1.5em;
    font-size: 22rpx;
    margin-top: 6px;
    font-style: italic;
    text-align: center;
}
</style>
<div ng-if="!pagedata.pageloadding" class="grace-full-loading data-v-680ac6ab">
    <div class="content data-v-680ac6ab">
        <div class="image data-v-680ac6ab">
            <img class="data-v-680ac6ab" src="../addons/jy_nongren/imgs/xiaoji2.png" style="width:3rem;height:3rem;"></image>
        </div>
        <div class="text data-v-680ac6ab" style="font-size:0.5rem;color:#999">加载中...</div>
    </div>
</div>
<div ng-if="pagedata.pageloadding" class="fui-page fui-page-current">
<div class="fui-content" style='top:0;padding-bottom:0;background-image: url("../addons/jy_nongren/imgs/bg.jpg"); background-color: rgb(117, 206, 252);'>
<div class="tab-page data-v-21d0113d">
    <div class="data-v-21d0113d">
		<div data-v-41f7e184="" class="chick" style="z-index: 21;">
		<div data-v-41f7e184="" class="mygif" style="height: 180px;position: absolute;" href="javascript:;" ng-click="toogle(pagedata,'showji')">
		<div style="background-image: url(&quot;../addons/jy_nongren/imgs/xiaoji2.png&quot;); background-size: 100% 100%; background-repeat: no-repeat;"></div>
		<img src="../addons/jy_nongren/imgs/xiaoji2.png" draggable="false">
		</div>
		<div ng-if="pagedata.showji" class="chat">
		<div data-v-41f7e184="" class="text" style="z-index:26">{{pagedata.jitips}}
		<div data-v-41f7e184="" style="display: inline-block; margin-left: 10px; width: 50px; text-align: center;">
		<div data-v-2b38bc31="" data-v-41f7e184="" class="grace-border-radius" style="background: rgb(175, 207, 255); border-radius: 16px;">
		<span data-v-41f7e184="" ng-if="pagedata.member.myji>0" ng-click="pagedata.showji=false;pagedata.showjishe=true" class="grace-white" style="line-height: 20px;"><span>去鸡舍</span></span>
		<span data-v-41f7e184="" ng-if="!pagedata.youmid && (!pagedata.member.myji || pagedata.member.myji<=0)" ng-click="pagedata.showweiji=true" class="grace-white" style="line-height: 20px;"><span>去认养</span></span>
		</div>
		</div>
		</div>
		<div data-v-41f7e184="" class="angel"></div>
		</div>
		<div data-v-41f7e184="" class="trough-1" style="z-index: 20;"></div>
		</div>
		<div data-v-41f7e184="" class="bee-box">
		<div data-v-41f7e184="" class="fengmi" href="javascript:;" ng-click="pagedata.getls_renwu(1);" style="background-image: url(&quot;../addons/jy_nongren/imgs/qp.png&quot;);">{{pagedata.renwu.ls_dayfee||0}}g</div>
		<div data-v-41f7e184="" class="soil two"></div><div data-v-41f7e184="" class="soil"></div>
		<div data-v-41f7e184="" class="bee">
		<div data-v-41f7e184="" class="bee-body"></div>
		</div>
		<div data-v-41f7e184="" class="bee bee-2">
		<div data-v-41f7e184="" class="bee-body">
		</div>
		</div>
		<div data-v-41f7e184="" class="triangle-box two">
		<div data-v-41f7e184="" class="item"></div>
		<div data-v-41f7e184="" class="item"></div>
		<div data-v-41f7e184="" class="item"></div>
		</div>
		</div>
        <div ng-if="!pagedata.youmid" class="bottom-menu _div data-v-21d0113d" style="bottom:12px;">
            <div href="javascript:;" ng-click="pagedata.showrenwu=true" class="item _div data-v-21d0113d">
                <div class="myfoods-box _div data-v-21d0113d">
					<div data-v-545d5eb1 class="beat grace-animate heartBeat">
                    <img class="data-v-21d0113d" src="../addons/jy_nongren/imgs/wugu.png">
					</div>
                </div>
                <label class="_span data-v-21d0113d">领粮食</label>
                <div class="grace-badge grace-bg-red grace-badge-absolute data-v-21d0113d">可领取</div>
            </div>
            <div href="javascript:;" ng-click="pagedata.showhaoyou=true" class="item _div data-v-21d0113d">
                <div class="myfoods-box _div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_nongren/imgs/share.png">
                </div>
                <label class="_span data-v-21d0113d">好友</label>
            </div>
			<div href="javascript:;" ng-click="pagedata.showcv=true" class="item _div data-v-21d0113d">
                <div class="myfoods-box _div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_nongren/imgs/cv2.png">
                </div>
                <label class="_span data-v-21d0113d">贡献值</label>
				 <div class="grace-badge grace-bg-red grace-badge-absolute data-v-21d0113d">可领取</div>
            </div>
            <!--<div href="javascript:;" ng-click="access_json('jy_nongren/buyvip/');" class="item _div data-v-21d0113d">
                <div class="myfoods-box _div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_nongren/imgs/vip.png">
                </div>
                <label class="_span data-v-21d0113d">VIP</label>
            </div>-->
            <div href="javascript:;" ng-click="pagedata.showweiji=true" class="myfoods _div data-v-21d0113d">
                <div class="myfoods-box _div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_nongren/imgs/weishi.png">
                </div>
                <label class="_span data-v-21d0113d">{{pagedata.member.lsfee||0}}g</label>
                <div ng-if="pagedata.member.noweiji>0" class="grace-badge grace-bg-red grace-badge-absolute data-v-21d0113d">喂粮食</div>
            </div>
        </div>
		<div ng-if="pagedata.youmid" class="bottom-menu _div data-v-21d0113d" style="bottom:12px;">
            <div href="javascript:;" ng-click="pagedata.showjishe=true" class="myfoods _div data-v-21d0113d">
                <div class="myfoods-box _div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_nongren/imgs/weishi.png">
                </div>
                <label class="_span data-v-21d0113d">{{pagedata.member.lsfee||0}}g</label>
                <div ng-if="pagedata.member.noweiji>0" class="grace-badge grace-bg-red grace-badge-absolute data-v-21d0113d">帮投喂</div>
            </div>
        </div>
        <div ng-if="!pagedata.youmid" class="top-menu _div data-v-21d0113d c" style="z-index:20;top:100px">
            <div class="item data-v-21d0113d" href="javascript:;" ng-click="main.uplookurl='jy_nongren/index/getls_renwu/type=4';access_json(pagedata.pluginset.shoplink);">
                <div class="_div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_nongren/imgs/shoping.png">
                </div>
                <div class="_span grace-border-radius">商城</div>
            </div>
			<div class="item data-v-21d0113d" href="javascript:;" ng-click="pagedata.showlslog=true;pagedata.getls_renwu(5);">
                <div class="_div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_nongren/imgs/youjian.png">
                </div>
                <div class="_span grace-border-radius">动态</div>
            </div>
            <div href="javascript:;" ng-click="pagedata.upposter();" class="item data-v-21d0113d">
                <div class="_div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_nongren/imgs/send.png" style="padding:0.2rem;">
                </div>
                <div class="_span grace-border-radius">海报</div>
            </div>
            <div class="item data-v-21d0113d" ng-click="pagedata.showhome=true">
                <div class="_div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_nongren/imgs/jidan.png" style="padding:0.2rem;">
                </div>
                <div class="_span grace-border-radius">我的</div>
            </div>
            <div ng-if="pagedata.pluginset.nokefu!=1" class="item data-v-21d0113d" ng-click="pagedata.itemtokefu()">
                <div class="_div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_nongren/imgs/chat1.png" style="padding:0.2rem;">
                </div>
                <div class="_span grace-border-radius">客服</div>
            </div>
        </div>
		<div ng-if="pagedata.youmid" class="top-menu _div data-v-21d0113d c" style="z-index:20;top:100px">
            <div class="item data-v-21d0113d" href="javascript:;" ng-click="main.uplookurl='jy_nongren/index/getls_renwu/type=4';access_json(pagedata.pluginset.shoplink);">
                <div class="_div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_nongren/imgs/shoping.png">
                </div>
                <div class="_span grace-border-radius">商城</div>
            </div>
			<div class="item data-v-21d0113d" href="javascript:;" ng-click="pagedata.jiahaoyou();">
                <div class="_div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_nongren/imgs/haoyoulogo.png">
                </div>
                <div class="_span grace-border-radius">{{pagedata.member.ishaoyou==1?'删好友':'加好友'}}</div>
            </div>
			<div class="item data-v-21d0113d" href="javascript:;" ng-click="access_json('jy_nongren/index/');">
                <div class="_div data-v-21d0113d">
                    <img class="data-v-21d0113d" src="../addons/jy_nongren/imgs/xiaoji2.png">
                </div>
                <div class="_span grace-border-radius">我的</div>
            </div>
		</div>
        <div class="head-chick data-v-21d0113d">
            <div class="head-chick-left data-v-21d0113d">
                <img class="head-chick-left data-v-21d0113d" ng-src="{{tomedia(pagedata.member.avatar) ||'../addons/jy_nongren/resource/images/avatar.png'}}">
            </div>
            <div class="head-chick-right data-v-21d0113d" style="margin-top:-0.2rem">
                <img class="data-v-21d0113d" src="../addons/jy_nongren/imgs/xiaoji2.png" style="width:100%;height:100%;">
            </div>
            <label class="_span data-v-21d0113d">{{pagedata.member.myji||0}}只</label>
            <div class="head-chick-right data-v-21d0113d" style="padding:0.4rem">
                <img class="data-v-21d0113d" src="../addons/jy_nongren/imgs/jidan.png" style="width:100%;height:100%;">
            </div>
            <label class="_span data-v-21d0113d">{{pagedata.member.jd||0}}个</label>
        </div>
    </div>
</div>
</div>
</div>
<div ng-if="pagedata.showmsg" class="popup" style="z-index: 1008;">
	<div class="popup-body">
		<div class="popup-center" style="width: 70%;">
			<div ng-click="pagedata.showmsg=false" class="closebtn"><i class="icon jinyunicon icon-wrong"></i></div>
			<div class="weui_msg">
					<div class="weui_text_area" style="margin-bottom:15px">
						<p class="weui_msg_desc">{{pagedata.showmsg}}</p>
					</div>
					<div class="modal-footer">
						<div class="mod-check" ng-click="pagedata.showmsg=false">确认</div>
					</div>
			</div>
		</div>
	</div>
</div>
<div id="attention" ng-if="pagedata.showqrcode==1">
	<div class="attention-alert" style="width:80%;left:10%">
					<div class="attention-content" style="padding: 1.5rem 0;background:none;height:auto">
						<div class="col-jy-1" style="text-align: center;">
							<img ng-src="{{tomedia(pagedata.kefuqr) || '../core/resource/images/nopic.jpg'}}" alt=""style="width: 100%">
						</div>
						<p >长按指纹识别图中二维码</p>
					</div>
					<i class="icon icon-cuowu" ng-click="pagedata.showqrcode=0" style="font-size:1.5rem;color:#fff;position: absolute;top:105%;left:45%"></i>
	</div>
</div>
<div ng-include="sys_html('lslog')"></div>
<div ng-include="sys_html('_haoyou')"></div>
<div ng-include="sys_html('_home')"></div>
<div ng-include="sys_html('_renwu')"></div>
<div ng-include="sys_html('_shareall')"></div>
<div ng-include="sys_html('_weiji')"></div>
<div ng-include="sys_html('_jishe')"></div>
<div ng-include="sys_html('_cv')"></div>
<div ng-include="sys_html('_poster')"></div>
<div ng-include="sys_html('_share')"></div>
<div ng-include="sys_html('_footer')"></div>
<script language="javascript">
setTimeout(function(){
	scope.pagedata.pageloadding=true
	scope.$evalAsync();
},1000);
scope.pagedata.tomessage=function(msg){
	scope.pagedata.showmsg=msg;
	scope.$evalAsync();
}
scope.pagedata.getls_renwu=function(type){
	if(scope.pagedata.youmid){
		scope.pagedata.tomessage('请前往自己的农场操作！');
		return false;
	}
	scope.get('jy_nongren/index/getls_renwu/type='+type,function(msg){
		if(type==1){
			scope.pagedata.renwu.ls_renwu1=1;
			scope.pagedata.member.lsfee +=parseInt(scope.pagedata.renwu.ls_dayfee);
		}else if(type==2){
			scope.pagedata.renwu.ls_renwu2=1;
			scope.pagedata.member.lsfee +=parseInt(scope.pagedata.renwu.ls_signfee);
		}else if(type==3){
			scope.pagedata.renwu.ls_renwu3=1;
		}else if(type==4){
			scope.pagedata.renwu.ls_renwu4=1;
			scope.access_json(scope.pagedata.pluginset.shoplink);
			return false;
		}else if(type==5){
			scope.pagedata.renwu.ls_renwu5=1;
		}
		scope.$evalAsync();
		scope.pagedata.tomessage(msg);
	});
}
scope.pagedata.lookrenwu=function(type){
	if(type==5 && scope.pagedata.renwu.ls_renwu5==1){
		return false;
	}
	setTimeout(function(){
		scope.pagedata.getls_renwu(type);
	},3000);
}
scope.pagedata.upposter=function(){
	scope.get('jy_nongren/index/upposter/',function(res){
		console.log(res)
		scope.pagedata.showposter=true;
		scope.pagedata.posterimg=res.posterimg;
		scope.$evalAsync();
	});
}
scope.pagedata.jiahaoyou=function(){
	scope.get('jy_nongren/index/jiahaoyou/youmid='+scope.pagedata.youmid,function(msg){
		scope.pagedata.tomessage(msg);
		scope.pagedata.member.ishaoyou=scope.pagedata.member.ishaoyou==1?0:1;
		scope.$evalAsync();
	});
}
scope.pagedata.itemtokefu=function(){
	if(scope.pagedata.pluginset.h5appkf==1 && window.config.fromh5wxapp==1 && window.config.container!='ttapp' && window.config.container!='baiduapp'){
		//H5小程序环境下
		var logo=scope.tomedia(scope.pagedata.account.logo);
		var title=scope.pagedata.account.title
		wx.miniProgram.navigateTo({
			url: '/pages/kefu/index?logo='+logo+'&title='+title
		})
	}else{
		if(scope.pagedata.pluginset.nokefu2!=1  && (!scope.pagedata.pluginset.kefutype_h5 || scope.pagedata.pluginset.kefutype_h5==0)){
			scope.access_json(scope.pagedata.pluginset.kflink);
		}else if(scope.pagedata.pluginset.nokefu2!=1  && scope.pagedata.pluginset.kefutype_h5==1){
			scope.pagedata.kefuqr=scope.pagedata.pluginset.kf_accountimg;
			scope.pagedata.showqrcode=1;
		}else if(scope.pagedata.pluginset.nokefu2!=1 && scope.pagedata.pluginset.kefutype_h5==2){
			scope.access_json(scope.pagedata.pluginset.appkflink)
		}else if(scope.pagedata.pluginset.nokefu2!=1 && scope.pagedata.pluginset.kefutype_h5==3){
			scope.access_json(scope.pagedata.pluginset.workerh5url);
		}else if(scope.pagedata.pluginset.nokefu2!=1 && scope.pagedata.pluginset.kefutype_h5==4){
			scope.pagedata.kefuqr=scope.pagedata.pluginset.guwenkfewm;
			scope.pagedata.showqrcode=1;
		}
		scope.$evalAsync();
	}
}
scope.pagedata.pay_submit=function(post,post_url,complete_url){
	complete_url=complete_url?complete_url:'jy_nongren/index/'
	scope.post_json(post_url,post,function(result){
		if(result.order_id){
			scope.pagedata.order_id=result.order_id;
			scope.$evalAsync();
			scope.tool.pay(result.pay_id,function(res){
					if(res.type=='success'){
						scope.message('支付成功！','success',complete_url);
					}else{
						scope.message('支付失败！','success',complete_url);
					}
			},'','',complete_url,complete_url);
		}else{
			scope.message(result);
		}
	});
}
</script>
<script>
scope.pagedata.toweiji=function(jiid){
	jiid=jiid?jiid:0;
	scope.get('jy_nongren/index/toweiji/jiid='+jiid,function(msg){
			scope.pagedata.tomessage(msg);
			if(jiid>0){
				scope.pagedata.member.noweiji--
			}else{
				scope.pagedata.member.noweiji=0
			}
			if(scope.pagedata.showjishe){
				scope.tool.get_list('jy_nongren/myji/list/',true);
			}
			scope.$evalAsync();
	});
}
</script>